package com.hbpu.encap.homework;

public class Homework07 {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("mike", 35, "主刀", 4, 12000);
        Doctor doctor1 = new Doctor("jack", 50, "门诊", 6, 13000);

    }
}

class Doctor {
    private String name;
    private int age;
    private String job;
    private int gender;
    private double sal;

    public Doctor(String name, int age, String job, int gender, double sal) {
        this.name = name;
        this.age = age;
        this.job = job;
        this.gender = gender;
        this.sal = sal;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

}
